package cn.hrlly.tao2shou.callback;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import cn.hrlly.tao2shou.domain.CommodityList;
import cn.hrlly.tao2shou.domain.Status;
import okhttp3.Response;

/**
 * User: gengliang
 * Date: 2016-01-30
 * Time: 16:25
 */

public abstract class ApplicationCallback extends Callback<Status>{
    @Override
    public Status parseNetworkResponse(Response response) throws Exception {
        String string=response.body().string();
        Status status=new Gson().fromJson(string,Status.class);
        return status;
    }
}
